<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="servlet.selectUsers"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Manage Users</title>
<%
ArrayList al=new ArrayList(); 
selectUsers selu= new selectUsers();
al=selu.selUsers(); 
%>
</head>
<body bgcolor="#2aa699">
<center>
    
             
     <table bgcolor=#66CC66 width=98% >
           
         <tr>
 	<%@include file="Menu.jsp" %>
 	</tr>
      </table>
      
      <table width=98% bgcolor=#66CC66>
      	<tr>
      		<td>
      			
      			Administrator can create user.		
      	
      		</td>
      		<td>
      			<table border =2 align="left">
      				<tr>
      					<td>user</td>
      					<td>Action</td>
      				</tr>
      				<%
      				 for(int i=0;i<al.size();i++){
      				%>
      				<tr>
      				 <td><%=al.get(i) %></td>
      				 <td><a href="UserEdit.jsp">edit</a></td>
      				</tr>
      			<%} %>
      			</table>
      		</td>
      	</tr>
      	<tr>
      		<td>
      	<form name="Add user" method="post" action="AddUser.jsp">
      		<input type="submit" value="AddUser.jsp"></input>
      	</form>
      	</td>
      	</tr>
      </table>   

</body>
</html>